//
//  MatchController.h
//  cutter
//
//  Created by mac on 15/12/14.
//  Copyright © 2015年 e360. All rights reserved.
//

#import "TMCutter.h"
#import "MatchSave.h"
#import "ProductCenterCtrl.h"
#import "AssetsCenterCtrl.h"


//
@interface MatchEditCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIView *maskView;
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@end


//搭配
@interface MatchEdit : UIViewController
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomLayout;
@property (weak, nonatomic) IBOutlet UICollectionView *thumbView;
@property (weak, nonatomic) IBOutlet TMCutter *cutterView;
@property (weak, nonatomic) IBOutlet UIView *ctrlView;
@property (weak, nonatomic) IBOutlet UIButton *exitView;
@property (weak, nonatomic) IBOutlet UIButton *redoView;
@property (weak, nonatomic) IBOutlet UIButton *undoView;
@property (weak, nonatomic) IBOutlet UIButton *delView;
@property (weak, nonatomic) IBOutlet UIButton *topView;
@property (weak, nonatomic) IBOutlet UIButton *botView;
@property (weak, nonatomic) IBOutlet UIButton *flpView;
@property (weak, nonatomic) IBOutlet UIButton *cpyView;
@property (weak, nonatomic) IBOutlet UIButton *locView;
@property (weak, nonatomic) IBOutlet UIButton *repView;
@property (weak, nonatomic) IBOutlet UIButton *infView;
@property (weak, nonatomic) IBOutlet UIButton *addView;
//
@property (strong, nonatomic) AssetsCenterCtrl *assetsCenter;
@property (strong, nonatomic) NSMutableDictionary *products;
@property (strong, nonatomic) NSMutableDictionary *data;
@property (strong, nonatomic) NSMutableArray *thumb;
//
@property(copy, nonatomic) blockEvent saveCallBack;
@property(copy, nonatomic) blockEvent onSelected;
-(void)import:(NSDictionary*)data;
-(BOOL)save:(blockEvent)callback;
@end